home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 140
/
(Vol 140) Sep 19 2011.iso
/
Games
/
red_cross_eru.swf
/
scripts
/
__Packages
/
gamebase
/
utils
/
Math2.as
< prev
next >
Wrap
Text File
|
2011-09-19
|
6KB
|
197 lines
§§push(true);
§§push(false);
§§push(false);
§§push(true);
while(true)
{
if(§§pop())
{
}
if(§§pop())
{
}
if(§§pop())
{
break;
}
§§push(true);
§§push(false);
}
if(!e.f)
{
e.f = new g();
}
§§pop();
if(!e.f.h)
{
e.f.h = new g();
}
§§pop();
if(!e.f.h[§§constant(4)])
{
var _loc2_ = f.h[§§constant(4)] = function()
{
}[§§constant(5)];
f.h[§§constant(4)] = function()
{
}[§§constant(6)] = function(a, b, c)
{
return {§\§\§constant(7)§:(- b + eval(§§constant(8))[§§constant(10)](eval(§§constant(8))[§§constant(9)](b,2) - 4 * a * c)) / (2 * a),§\§\§constant(11)§:(- b - eval(§§constant(8))[§§constant(10)](eval(§§constant(8))[§§constant(9)](b,2) - 4 * a * c)) / (2 * a)};
};
f.h[§§constant(4)] = function()
{
}[§§constant(12)] = function(x, y, x2, y2)
{
return x - x2 >= 0 ? 270 + eval(§§constant(8))[§§constant(13)]((y - y2) / (x - x2)) * 57.29577951308232 : 90 + eval(§§constant(8))[§§constant(13)]((y - y2) / (x - x2)) * 57.29577951308232;
};
f.h[§§constant(4)] = function()
{
}[§§constant(14)] = function(v, t, dp)
{
return eval(§§constant(8))[§§constant(15)](v / t * 100 * eval(§§constant(8))[§§constant(9)](10,dp)) / eval(§§constant(8))[§§constant(9)](10,dp);
};
f.h[§§constant(4)] = function()
{
}[§§constant(16)] = function(n, dp)
{
return eval(§§constant(8))[§§constant(15)](n * eval(§§constant(8))[§§constant(9)](10,dp)) / eval(§§constant(8))[§§constant(9)](10,dp);
};
f.h[§§constant(4)] = function()
{
}[§§constant(17)] = function(n, dp)
{
return eval(§§constant(8))[§§constant(18)](n * eval(§§constant(8))[§§constant(9)](10,dp)) / eval(§§constant(8))[§§constant(9)](10,dp);
};
f.h[§§constant(4)] = function()
{
}[§§constant(19)] = function(n, dp)
{
return eval(§§constant(8))[§§constant(20)](n * eval(§§constant(8))[§§constant(9)](10,dp)) / eval(§§constant(8))[§§constant(9)](10,dp);
};
f.h[§§constant(4)] = function()
{
}[§§constant(21)] = function(n, i, max)
{
max = n[0];
i = 1;
while(i < n[§§constant(22)])
{
if(n[i] > max)
{
max = n[i];
}
i = i + 1;
}
return max;
};
f.h[§§constant(4)] = function()
{
}[§§constant(23)] = function(n, i, min)
{
min = n[0];
i = 1;
while(i < n[§§constant(22)])
{
if(n[i] < min)
{
min = n[i];
}
i = i + 1;
}
return min;
};
f.h[§§constant(4)] = function()
{
}[§§constant(24)] = function(n, i, j)
{
j = 0;
i = 0;
while(i < n[§§constant(22)])
{
j += n[i];
i = i + 1;
}
return j / n[§§constant(22)];
};
f.h[§§constant(4)] = function()
{
}[§§constant(25)] = function(n, i)
{
i = 0;
while(i < n[§§constant(22)])
{
n[i][§§constant(26)] = n[i];
i = i + 1;
}
n[§§constant(29)](§§constant(26),eval(§§constant(27))[§§constant(28)]);
if(n[§§constant(22)] / 2 == eval(§§constant(8))[§§constant(15)](n[§§constant(22)] / 2))
{
return (n[n[§§constant(22)] / 2 - 1] + n[n[§§constant(22)] / 2]) / 2;
}
return n[eval(§§constant(8))[§§constant(20)](n[§§constant(22)] / 2) - 1];
};
f.h[§§constant(4)] = function()
{
}[§§constant(30)] = function(n)
{
return f.h[§§constant(4)][§§constant(21)](n,0,0) - f.h[§§constant(4)][§§constant(23)](n,0,0);
};
f.h[§§constant(4)] = function()
{
}[§§constant(31)] = function(n, t, i, k, o, l, y)
{
y = new §\§\§constant(27)§();
k = new §\§\§constant(27)§();
l = new §\§\§constant(27)§();
k[0] = n[0];
i = 0;
while(i < n[§§constant(22)])
{
o = 0;
while(o < k[§§constant(22)])
{
if(n[i] == k[o])
{
break;
}
o = o + 1;
}
if(o >= k[§§constant(22)])
{
k[k[§§constant(22)]] = n[i];
}
i = i + 1;
}
t = n[§§constant(33)](§§constant(32));
y[0] = k[0];
l[0] = t[§§constant(34)](k[0])[§§constant(22)] - 1;
i = 1;
while(i < k[§§constant(22)])
{
if(t[§§constant(34)](k[i])[§§constant(22)] - 1 > l[0])
{
l[0] = t[§§constant(34)](k[i])[§§constant(22)] - 1;
y = new §\§\§constant(27)§();
y[0] = k[i];
}
else if(t[§§constant(34)](k[i])[§§constant(22)] - 1 == l[0])
{
y[y[§§constant(22)]] = k[i];
}
i = i + 1;
}
return y;
};
f.h[§§constant(4)] = function()
{
}[§§constant(35)] = function(num, n)
{
return eval(§§constant(8))[§§constant(9)](num,1 / n);
};
f.h[§§constant(4)] = function()
{
}[§§constant(36)] = new §\§\§constant(37)§(1.6180339887498947);
§§push(§§constant(38)(f.h[§§constant(4)][§§constant(5)],null,1));
}
§§pop();